import request from '@/utils/request'

// 查询借阅记录列表
export function listBorrow(params) {
  return request({
    url: '/borrow/list',
    method: 'get',
    params
  })
}

// 添加借阅记录
export function addBorrow(data) {
  return request({
    url: '/borrow/add',
    method: 'post',
    data
  })
}

// 修改借阅记录
export function updateBorrow(data) {
  return request({
    url: '/borrow/update',
    method: 'post',
    data
  })
}

// 删除借阅记录
export function deleteBorrow(params) {
  return request({
    url: '/borrow/delete',
    method: 'get',
    params
  })
}
